<?php
global $php;

if (isset($php->config['ots'][$php->factory_key]))
{
    $config = $php->config['ots'][$php->factory_key];
    return new Tiger\Component\Ots($config);
}
else
{
    throw new Exception('require ots[' . $php->factory_key . '] config.');
}

